package com.briup.day15;

import java.io.*;

/**
 * @author 谭梦寻
 * @version 1.1
 */
public class TestExec {
    public static void main(String[] args) throws IOException {
//        1 声明流
//        InputStream inputStream = null;
//        FileInputStream fileInputStream = new FileInputStream("a.txt");
        BufferedReader br = new BufferedReader(new FileReader("a.txt"));
        PrintStream out = System.out;
        String line = null;
        while ((line = br.readLine()) != null) {
//            if (br.ready()) {
                out.println(line);
//            }

        }
//        3 刷新关闭流
        out.flush();
        br.close();
        out.close();


    }
}
